<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:constants="http://www.tuanzi.com/constants/tags">

<p:dialog header="上传凭证" widgetVar="billImage" modal="true" closable="true" resizable="true" width="1200" height="600">
    <style>
        .ui-fileupload-files{
            display: inline-block;
        }
    </style>
    <p:outputPanel id="bill-image-dialog">
        <p:fileUpload fileUploadListener="#{xhhSettlementBillListBean.handleBillImageUpload}" mode="advanced"
                      dragDropSupport="false"
                      sizeLimit="#{constants:get('UPLOAD_FILE_SIZE')}" fileLimit="1"
                      allowTypes="/(\.|\/)(gif|jpe?g|png)$/" cancelLabel="取消" uploadLabel="上传" label="选择"/>
        <h:graphicImage id="picture" url="#{xhhSettlementBillListBean.billImageUrl}"/>
    </p:outputPanel>
</p:dialog>

</html>
